<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>xxxxxxxx</title>

    <link rel="stylesheet" href="/admin/css/style.css">
    <script src="/layui/layui.js"></script>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/js/jquery-3.3.1.min.js"></script>
    <script src="/js/vue.min.js"></script>
    <style>
        .right h2 {
            margin: 10px 0;
        }

        .right li {
            margin-bottom: 10px;
        }
    </style>
</head>
<body>

<div id="app">
    <!--顶栏-->
    <div th:replace="common/common_head::comment_head"></div>
    <div class="main">
        <!--左栏-->

        <div th:replace="common/common_menu::comment_menu"></div>
        <!--右侧-->
        <div class="right p20">
            <blockquote class="layui-elem-quote">
                <h2>xxxxxxxxx</h2>
            </blockquote>

            <div class="layui-row">
                <div class="layui-col-md4">
                    <div class="layui-card">
                        <div class="layui-card-header">
                            <h2>我的信息</h2>
                        </div>
                        <div class="layui-card-body" style="height: 150px;">

                            <ul shiro:hasAnyRoles="student,teacher,professionor,admin">
                                <li>账号：<span th:text="${user.getId()}"></span></li>
                                <li>姓名：<span th:text="${user.getName()}"></span></li>
                                <li>性别：<span th:text="${user.getSex()}"></span></li>
                                <li shiro:hasRole="student">账号类别：学生</li>
                                <li shiro:hasRole="teacher">账号类别：教师</li>
                                <li shiro:hasRole="professionor">账号类别：实训负责人</li>
                                <li shiro:hasRole="admin">账号类别：系统管理员</li>
                            </ul>

                        </div>
                    </div>
                </div>

            </div>


        </div>
    </div>
</div>

<div th:replace="common/common_left :: js(~{::script})"></div>
</body>
</html>